package com.example.jdcompetition.Service.cvsPro.jd;

import com.example.jdcompetition.Component.CsvPaths;
import com.example.jdcompetition.Service.cvsPro.dataprocess.CsvProcess;

import java.io.IOException;
import java.nio.file.Paths;

/**
 * @author henrydai
 * @date 2021/6/17 10:19
 */
@Deprecated
public class DeliverRunnable implements Runnable{
    private CsvPaths paths;
    DeliverRunnable(CsvPaths paths)
    {
        this.paths=paths;
    }

    @Override
    public void run() {
        //*******************************派送文件****************************
        try {
            new CsvProcess().solveDeliver(Paths.get(paths.getFilePath(),paths.getDeliverFile1()),paths.getCharsetName1());
            new CsvProcess().solveDeliver(Paths.get(paths.getFilePath(),paths.getDeliverFile2()),paths.getCharsetName1());
            new CsvProcess().solveDeliver(Paths.get(paths.getFilePath(),paths.getDeliverFile3()),paths.getCharsetName1());
        } catch (Exception e) {
            e.printStackTrace();
        }
        //*******************************派送文件****************************
    }
}
